<template>
	<div style="width: 75%;">
		<div class="ffffff mainpadding radius">
			<div class="text_ft color_zero">订单详情</div>
			<study-order-list :child="info" :types="1"></study-order-list>
		</div>
		<div class="ffffff mainpadding margin_top radius">
			<div class="text_ft color_zero">支付详情</div>
			<div class="flexbetween margin_top2">
				<div class="text_d color_six">订单编号：</div>
				<div class="text_d color_zero">{{info.order_no}}</div>
			</div>
			<div class="flexbetween margin_top2">
				<div class="text_d color_six">下单时间：</div>
				<div class="text_d color_zero">{{info.paytime_text}}</div>
			</div>
			<div class="flexbetween margin_top2">
				<div class="text_d color_six">支付方式：</div>
				<div class="text_d color_zero">{{info.pay_type_text}}</div>
			</div>
			<div class="margin_top2 padding_top2 line_t flexright">
				<div>
					<span class="text_dt color_zero">实付总额：</span>
					<span class="text_dt color_red">￥{{info.pay_price}}</span>
				</div>
			</div>
		</div>
	</div>
</template>

<script>
	import { getOrderInfo } from "@/API/home"
	import studyOrderList from "./components/studyOrderList"
	export default {
		components: {
			studyOrderList
		},
		data() {
			return {
				info:{}
			}
		},
		created() {
			this.getInfo(this.$route.query.id)
		},
		methods: {
			async getInfo(id) {
				let res = await getOrderInfo({ id })
				this.info = res.data.data
			},
		},
	}
</script>

<style lang="scss" scoped>
</style>